*** Replication files ***

*set working path to folder containing this file
global path = ""
cd ${path}

*set paths for folders
global glCode = "${path}/Code"
global glOut = "${path}/Output"
global glData = "${path}/Data"
global glWork = "${path}/Working"

*** Prepare PRISM data ***

*Run Extract_PRISM.ipynb

*** Prepare Climate projection data ***

*Run Extract_climate_projection.ipynb

*** Summary statistics ***

*generate Table 2
do ${glCode}/Summary_stats.do

*** Results ***

*generate Figure 2, Figure 3 and Appendix Table A1
do ${glCode}/Analysis_restricted_spline.do

*generate Figure 4 and Figure 5
do ${glCode}/Analysis_selection_simulation.do

*** Climate change projection ***

*generate Figure 6
do ${glCode}/Climate_projection_results.do

*generate Table 3
do ${glCode}/Climate_uniform_temp_increase.do

*generate Figure 7
do ${glCode}/Climate_projection_with_selection_results.do
do ${glCode}/Climate_projection_selection_comparison.do